@import "variable";

body {
  font: 12px/1.5 Arial, Verdana, "\5b8b\4f53";
  font-family: "iconfont", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: @font_dark_grey;
  background: @font_white;
  position: relative;
  a {
    color: @font_dark_grey;
    &:hover {
      color: @dark_red;
      text-decoration: none;
    }
  }
  .hide {
    display: none;
  }
  .container {
    padding: 0;
    //width: 990px;
  }
  .img-thumbnail {
    background-color: @font_grey;
  }
  .fl {
    .fl();
  }
  .fr {
    .fr();
  }
  button {
    outline: none;
  }

  p, h1, h2, h3, h4, h5, h6 {
    margin: 0;
    padding: 0;
  }
  em, i {
    font-style: normal;
  }
  .form {
    .itxt {
      height: 23px;
      width: 165px;
      padding: 3px 5px 2px;
      line-height: 18px;
      border: 1px solid @border_grey;
      vertical-align: middle;
      float: none;
    }
    .itxt01 {
      width: 520px;
    }
    .itxt02 {
      width: 255px;
    }
  }
  .ftx_03 {
    color: @gray_9;
  }
  .form {
    em {
      color: @price_red;
    }
    .fl {
      .fl();
    }
    .item {
      display: block;
      margin-bottom: 15px;
      line-height: 25px;
    }
    span.item_label {
      .fl();
      line-height: 18px;
      height: 25px;
      padding: 4px 0 3px;
      text-align: right;
      width: 75px;
    }
    .star {
      color: red;
    }
    .error_msg {
      display: inline-block;
      height: 28px;
      line-height: 28px;
      padding: 0 10px 0 30px;
      vertical-align: middle;
      color: @price_red;
      background: url("../img/error-ico.png") 8px 4px no-repeat @font_white;
    }
    .jdradio {
      float: none;
      vertical-align: -2px;
      margin: 0 3px 0 0;
      padding: 0;
    }
    .selt {
      width: 100px;
      line-height: 18px;
      border: 1px solid @border_grey;
      padding: 5px;
      float: none;
      font-family: 'microsoft yahei';
      .font-s12();
    }
    .selt1 {
      width: 70px;
    }
  }
  .ftx_05 {
    color: @link_blue;
  }
  .ml10 {
    margin-left: 10px;
  }
  .mr10 {
    margin-right: 10px;
  }
  .mr5 {
    margin-right: 5px;
  }
  .ml5 {
    margin-left: 5px;
  }
  .btn_5{
    background-color: #f5fbef;
    background-image: linear-gradient(to bottom,#f5fbef 0,#eaf6e2 100%);
    border-radius: 2px;
    display: inline-block;
    height: 23px;
    line-height: 18px;
    border: 1px solid #bfd6af;
    padding: 2px 14px 3px;
    &:link,&:hover{
      color: #323333;

    }
  }
  .ftx_02{
    color: @doing_green;
  }
}

//前部导航
#shortcut {
  @height: 30px;
  background: @bg_light_grey;
  height: @height;
  line-height: @height;
  #city_chose .shortcut_a {
    padding: 0 25px 0 10px;
  }
  .dropdown {
    z-index: 10;
    .rel();
    &:hover {
      padding: 0;
      .dt {
        background-color: @font_white;
        border: solid #ddd;
        border-width: 0 1px;
      }
    }
  }
  li {
    .fl();
    height: @height;
    padding: 0 2px;
  }
  .spacer {
    width: 1px;
    height: 12px;
    margin-top: 9px;
    padding: 0;
    background: @border_grey;
    overflow: hidden;
  }
  .shortcut_a {
    .fl();
    padding: 0 8px;
    &:hover {
      color: @dark_red;
      a {
        color: @dark_red;
      }
    }
  }
  .iconfont {
    font-size: 1px;
  }
  .dd.layer {
    display: none;
    .abs();
    top: 30px;
    background: @font_white;
    border: 1px solid #ddd;
    z-index: 444;
  }
  .dd_inner {
    z-index: 444;
  }
  .dd_spacer {
    .abs();
    top: -7px;
    height: 10px;
    background: @font_white;
    overflow: hidden;
    width: 79px;
  }
  //城市
  #city_chose {
    .dd_spacer {
      width: 114px;
    }
    .dd_inner {
      width: 311px;
      padding: 10px 0 10px 10px;
    }
    .item {
      .fl();
      width: 60px;
      padding: 2px 0;
      a {
        .fl();
        padding: 0 8px;
      }
      .selected {
        background: @dark_red;
        color: @font_white;
      }
    }
  }
  //个人中心
  #person {
    .dd_spacer {
      left: 0;
    }
    .dd_inner {
      width: 80px;
      padding: 0 2px 5px;
    }
  }
  //客户端下载
  #phone {
    .dd_spacer {
      left: 0;
      width: 95px;
    }
    .dd {
      text-align: center;
      width: 97px;
      padding-bottom: 8px;
    }
    img {
      width: 82px;
      height: 97px;
      border: 0;
      padding: 0;
    }
  }
  //关注
  #foucs {
    .dd_spacer {
      left: 0;
    }
    .dd {
      width: 81px;
      padding-bottom: 8px;
    }
    img {
      width: 82px;
      height: 97px;
      border: 0;
      padding: 0;
    }
  }
  //客户服务
  #custom_service {
    .dd_spacer {
      left: 0;
    }
    .dd {
      width: 170px;
      padding-bottom: 8px;
    }
    p {
      padding-left: 10px;
      margin: 0;
      color: @font_grey_3;
      .font-w700();
    }
    ul {
      display: table;
    }
    li {
      display: inline-block;
      width: 70px;
      padding-left: 10px;
      height: 24px;
    }
  }
  //网站导航
  #web_nav {
    .dd {
      width: 980px;
      right: 0;
      padding: 20px 0 16px;
    }
    .dd_spacer {
      right: 0;
    }
    .dd_inner {
      display: flex;
      justify-content: center;
      align-content: space-between;
    }
    dl {
      width: 221px;
      padding-left: 20px;
      border-left: 1px solid #ddd;
      &:first-child {
        border-left: none;
      }
    }
    dt {
      .font-s14();
      .font-w700();
      margin-bottom: 6px;
    }
    .item {
      .fl();
      width: 100px;
      display: inline-block;
    }
  }
}

//横条广告
.advert {
  .rel();
  a {
    width: 100%;
    display: block;
  }
  img {
    width: 100%;
  }
  .close_advert {
    display: block;
    position: absolute;
    top: 15px;
    right: 20px;
    z-index: 5;
    width: 25px;
    height: 25px;
    font-size: 20px;
    &:hover {
      color: @font_white;
    }
  }
}

//头部
header {
  .container {
    clear: both;
  }
  .logo {
    .fl();
    .rel();
    z-index: 7;
    height: auto;
    padding: 20px 0;
    a {
      display: block;
      width: 270px;
      height: 60px;
      background: url("../img/logo-201305.png") no-repeat 0 0;
    }
  }
  .search_box {
    .rel();
    .fl();
    margin-top: 25px;
    width: auto;
  }
  .form {
    height: 36px;
  }
  .search_text {
    color: rgb(51, 51, 51); //      width: 370px;
    .fl(); //      height: 24px;
    line-height: 24px;
    padding: 4px;
    margin-bottom: 4px;
    border: 1px solid @border_red;
    border-width: 2px 0 2px 2px;
    .font-s14();
  }
  .btn_search {
    .fl();
    width: 82px;
    height: 36px;
    background: @border_red;
    border: none;
    line-height: 1;
    color: @font_white;
    .font-s16();
  }
  .head_r {
    .fr();
    height: 36px;
    margin-top: 25px;
    .rel();
    .fore {
      .rel();
      height: 34px;
      line-height: 34px;
      .border_grey();
      text-align: center;
      background: @bg_light_grey;
      &:hover {
        background: @font_white;
        .box_shadow();
        .fore_a,
        .iconfont {
          color: @dark_red;
        }
      }
    }
  }
  .layer {
    display: none;
    background: @font_white;
    line-height: 24px;
    .abs();
    top: 33px;
    border: 1px solid @font_grey;
    z-index: 20;
    .box_shadow();
    .spacer {
      height: 10px;
      .abs();
      top: -5px;
      z-index: 50;
      background-color: @font_white;
    }
  }
  .head_person {
    .fl();
    .layer {
      width: 280px;
      right: -1px;
    }
    .spacer {
      right: 0;
    }
    .userinfo {
      padding: 10px 0 10px 15px;
      overflow: hidden;
    }
    .u_pic {
      margin-right: 10px;
      img {
        width: 60px;
        height: 60px;
        border-radius: 50%;
      }
    }
    .u_name {
      padding: 6px 0 0;
      .font-w700();
    }
  }
  .num {
    color: @font_red;
  }
  .otherlist {
    width: 255px;
    padding: 0 0 0 15px;
    margin: 5px 0;
    overflow: hidden;
    margin-bottom: 10px;
    .fore_inner {
      .fl();
      width: 120px;
    }
  }
  .shop_bag {
    .fr();
    .rel();
    margin-left: 10px;
    .icon-gouwuche1 {
      color: @dark_red;
    }
    .count {
      .abs();
      top: -5px;
      right: 0;
      display: inline-block;
      padding: 1px 2px;
      line-height: 14px;
      height: 14px;
      .font-s12();
      color: @font_white;
      background: @dark_red;
      border-radius: 7px 7px 7px 0;
      min-width: 14px;
      text-align: center;
    }
    .layer {
      width: 308px;
      right: -1px;
      .spacer {
        right: 0;
      }
    }
    .empty {
      width: 100%;
      height: 72px;
      background: @font_white;
      color: @font_grey;
      &:hover {
        color: @font_grey;
      }
      .iconfont {
        .font-s55();
        .abs();
        top: 20px;
        left: 20px;
      }
      span {
        .font-s17();
        line-height: 72px;
      }
    }
    .shoplist {
      width: 100%;
      height: 100%;
      background: @font_white;
      .font-s12();
      h4 {
        .font-s12();
      }
    }
    .smt {
      width: 100%;
      height: 25px;
      padding: 6px 8px;
      line-height: 25px;
    }
    .smc {
      width: 100%;
      background: @font_white;
      height: auto !important;
      max-height: 344px;
      overflow-y: auto;
      ul li {
        padding: 8px 10px;
        border-top: 1px dotted @font_grey;
        overflow: hidden;
        line-height: 17px;
        vertical-align: bottom;
      }
    }
    .p_img {
      width: 50px;
      height: 50px;
      border: 1px solid #ddd;
      padding: 0;
      margin-right: 10px;
      img {
        width: 50px;
        height: 50px;
      }
    }
    .p_name {
      width: 120px;
      height: 52px;
      text-align: left;
      a:hover {
        color: @dark_red;
      }
    }
    .p_detail {
      text-align: right;
      a:hover {
        color: @dark_red;
      }
    }
    .p_price {
      .font-w700();
    }
    .smb {
      padding: 8px;
      height: 37px;
      background: @bg_light_grey;
      text-align: right;
      a {
        .fr();
        height: 29px;
        padding: 0 10px;
        background: @item_red;
        color: @font_white;
        text-align: center;
        .font-w400();
        line-height: 29px;
        border-radius: 3px;
        &:hover {
          color: @font_white;
        }
      }
    }
    .p_total {
      line-height: 29px;
    }
  }
  .hotwords {
    .fl();
    height: 20px;
    line-height: 20px;
    overflow: hidden;
    a {
      margin-right: 10px;
      .fl();
      white-space: nowrap;
      &:hover {
        color: @font_red;
      }
    }
  }
}

//导航
nav {
  margin-bottom: 10px;
  height: 44px;
  border-bottom: 2px solid @b_dark_red;
  .container {
    .rel();
    z-index: 9;
    height: 44px;
  }
  #nav {
    .fl();
    width: 210px;
    height: auto;
    overflow: visible;
    background: @b_dark_red;
    z-index: 10;
  }
  .dt {
    .rel();
    a {
      display: block;
      width: 180px;
      height: 42px;
      padding: 0 10px;
      background: @b_dark_red;
      font: 400 15px/44px "microsoft yahei";
      color: @font_white;
    }
    .icon-xia {
      .abs();
      top: 0;
      right: 7px;
      .font-s15();
      color: @font_white;
      display: block;
      transition: transform 0.1s ease-in 0s;
      -webkit-transition: -webkit-transform 0.1s ease-in 0s;
    }
  }
  .dd_inner {
    height: 100%;
    background: @dark_red;
    margin-top: 2px;
    .item {
      border-left: 1px solid @border_red;
      .rel();
      z-index: 1;
      height: 31px;
      color: @font_white;
      h3 {
        .abs();
        z-index: 2;
        height: 31px;
        padding: 0 10px;
        line-height: 31px;
        font-family: "microsoft yahei";
        font-size: 14px;
        font-weight: 400;
        margin: 0;
      }
      a {
        color: @font_white;
      }
      .r_triangle {
        display: none;
        .abs();
        right: -6px;
        top: 50%;
        margin-top: -3px;
        border-color: transparent transparent transparent @border_red;
        border-style: solid;
        border-width: 6px 0 6px 6px;
        width: 0;
        height: 0;
        z-index: 2;
        border-left-color: @fenlei_item_bg;
      }
      .ext {
        .rel();
        z-index: 2;
        margin: 0 10px;
        border-bottom: dotted 1px @fenlei_item_line;
        line-height: 28px;
        overflow: hidden;
        a {
          .fl();
          margin-right: 6px;
          width: 55px;
        }
      }
      &:last-child .ext {
        border-bottom: none;
      }
    }
    .selected {
      color: @item_red;
      background: @bg_light_grey;
      a {
        color: @item_red;
      }
      .icon-angle-right {
        display: none;
      }
    }
    .icon-angle-right {
      .abs();
      z-index: 1;
      right: 7px;
      top: 7px;
      font-size: 5px;
    }
  }
  .dd_layer {
    display: none;
    .abs();
    left: 208px;
    top: 44px;
    background: @bg_f7;
    border-right: 1px solid @border_red;
    border-bottom: 1px solid @border_red;
    border-left: 1px solid @border_red;
    overflow: hidden;
    min-height: 480px;
  }
  .item_sub {
    display: none;
    overflow: hidden;
    margin-left: 2px;
    zoom: 1;
  }
  .item_brands {
    .fr();
    display: inline;
    width: 168px;
    overflow: hidden;
    margin: 19px 20px 10px 0;
    a {
      .fl();
      display: inline;
      margin: 1px 0 0 1px;
    }
    img {
      width: 83px;
      height: 35px;
    }
  }
  .item_channels {
    .fl();
    display: table;
    width: 570px;
    height: 24px;
    padding: 20px 0 0 20px;
    background: @bg_f7;
    overflow: hidden;
    a {
      .fl();
      display: inline-block;
      padding: 0 0 0 8px;
      margin-right: 10px;
      line-height: 24px;
      background: #7c7171;
      color: @font_white;
      white-space: nowrap;
      &:hover {
        background: @dark_red;
        .iconfont {
          background: @b_dark_red;
        }
      }
    }
    .iconfont {
      background: #5c5251;
      display: inline-block;
      height: 24px;
      width: 23px;
      .font-s4();
      text-align: center;
    }
  }
  .subitems {
    .fl(); //      width: 570px;
    padding: 6px 0 1006px 20px;
    margin-bottom: -1000px;
    background: @bg_f7;
    min-height: 409px;
    dl {
      width: 100%;
      overflow: hidden;
      line-height: 2em;
    }
    dt {
      .rel();
      .fl();
      width: 54px;
      padding: 4px 30px 0 0;
      text-align: right;
      .font-w700();
    }
    .iconfont {
      .abs();
      top: 3px;
      right: 15px;
      .font-s1();
    }
    dd {
      display: table;
    }
    dd a {
      .fl();
      padding: 0 8px;
      margin: 4px 0;
      line-height: 16px;
      height: 16px;
      border-left: 1px solid #e0e0e0;
      white-space: nowrap;
    }
  }
  .item_promotions {
    .fr();
    display: inline;
    width: 168px;
    margin-right: 20px;
    a {
      display: block;
      margin-bottom: 1px;
    }
    img {
      width: 168px;
      height: 134px;
    }
  }
  #navitems {
    .fl(); //      margin-left: 210px;
    .rel();
    z-index: 2;
    ul,
    li {
      .fl();
      margin: 0;
    }
    a {
      height: 44px;
      padding: 0 20px;
      text-align: center;
      font: 400 15px/44px "microsoft yahei";
      color: @font_grey_3;
      &:hover {
        color: @dark_red;
      }
    }
  }
}

//侧边工具栏
#toolbar_box {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 99999;
  .toolbar_wrap {
    .abs();
    top: 0;
    right: 0;
    z-index: 9999;
    width: 0;
    height: 100%;
    min-height: 452px;
  }
  .toolbar {
    .abs();
    right: 0;
    top: 0;
    width: 0;
    height: 100%;
    .border_right();
    transition: right 0.3s ease-in-out 0s;
  }
  .toolbar_tabs {
    .abs();
    top: 50%;
    left: -29px;
    width: 35px;
    margin-top: -61px;
  }
  .toolbar_tab {
    .rel();
    width: 35px;
    height: 35px;
    margin-bottom: 1px;
    cursor: pointer;
    background-color: @chat;
    border-radius: 3px 0 0 3px;
    &:hover {
      .tab_text {
        display: block;
        transform: translateX(-95px);
      }
      .tab_text2 {
        transform: translateX(-83px);
      }
    }
  }
  .tab_ico,
  .tab_tip,
  .tabs_tip .ico {
    display: inline-block;
    background-image: url("../img/toolbars.png");
    background-repeat: no-repeat;
  }
  .tab_tip {
    .abs();
    top: 8px;
    right: 10px;
    width: 6px;
    height: 6px;
    background-position: -150px -150px;
    z-index: 999;
  }
  .tab_ico {
    width: 34px;
    height: 35px;
    margin-left: 1px;
    .rel();
    z-index: 2;
    background-color: @chat;
    &:hover {
      background-color: @dark_red;
    }
  }
  .tab_text {
    display: none;
    width: 62px;
    height: 35px;
    line-height: 35px;
    color: @font_white;
    text-align: center;
    font-family: "微软雅黑";
    .abs();
    z-index: 1;
    left: 35px;
    top: 0;
    background-color: @dark_red;
    border-radius: 3px 0 0 3px;
    transition: all 0.3s linear;
    a {
      color: @font_white;
    }
  }
  .toolbar_vip .tab_ico {
    background-position: -88px -175px;
  }
  .toolbar_cart .tab_ico {
    background-position: -50px 0;
  }
  .toolbar_follow .tab_ico {
    background-position: -50px -50px;
  }
  .toolbar_history .tab_ico {
    background-position: -50px -100px;
  }
  .toolbar_message .tab_ico {
    background-position: -190px -150px;
  }
  .toolbar_kefu .tab_ico {
    background-position: -50px -150px;
  }
  .tab_sub {
    .abs();
    z-index: 3;
    right: 2px;
    top: -5px;
    height: 11px;
    padding: 1px 2px;
    border: 1px solid @border_red;
    overflow: hidden;
    color: @font_white;
    font: 11px/11px verdana;
    text-align: center;
    min-width: 11px;
    border-radius: 10px;
    background-color: #cc6060;
  }
  .tabs_tip {
    .abs();
    top: 0;
    right: 35px;
    height: 35px;
    line-height: 35px;
    white-space: nowrap;
    border-radius: 5px;
    background: @dark_red;
    color: @font_white;
    padding: 0 10px 0 30px;
    .ico {
      width: 15px;
      height: 12px;
      background-position: -98px -162px;
      .abs();
      top: 13px;
      left: 10px;
    }
  }
  .toolbar_tab_selected {
    background-color: @dark_red;
  }
  .toolbar_footer {
    .abs();
    bottom: -1px;
    width: 100%;
    left: -29px;
    .tab_text {
      width: 50px;
    }
  }
  .toolbar_top .tab_ico {
    background-position: -50px -250px;
  }
  .toolbar_feedback .tab_ico {
    background-position: -50px -300px;
  }
}

footer {
  margin-top: 10px;
  height: 500px;
  background-color: #eaeaea;
  .footer_service {
    padding: 30px 0;
    border-bottom: 1px solid #dedede;
  }
  .service_inner {
    height: 42px;
    margin: 0 auto;
  }
  .service_item {
    .fl();
  }
  .service_unit {
    .rel();
    margin: 0 auto;
    padding-left: 45px;
    width: 225px;
  }
  .service_tit {
    text-indent: -999px;
    overflow: hidden;
    .abs();
    left: 0;
    top: 0;
    width: 36px;
    height: 42px;
    margin: 0;
    background-image: url("../img/ico_service.png");
  }
  .service_text {
    overflow: hidden;
    width: 100%;
    height: 42px;
    line-height: 42px;
    .font-s18();
    .font-w700();
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #444;
  }
  .service_tit_duo {
    background-position: 0 0;
  }
  .service_tit_kuai {
    background-position: 0 -43px;
  }
  .service_tit_hao {
    background-position: 0 -86px;
  }
  .service_tit_sheng {
    background-position: 0 -129px;
  }
  .footer_help {
    display: flex;
    justify-content: center;
    align-content: space-between;
  }
  .footer_help dl {
    .fl();
    dt {
      padding: 6px 0;
      font: 400 16px/24px "microsoft yahei";
    }
    dd {
      line-height: 20px;
    }
  }
  .footer {
    border-top: 1px solid #e5e5e5;
    padding: 20px 0 30px !important;
    text-align: center;
  }
  .links a {
    margin: 0 10px;
  }
  .copyright {
    margin: 10px 0;
  }
  .authentication {
    a {
      margin: 0 5px;
    }
    img {
      border: 0;
      width: 103px;
      height: 32px;
    }
  }
}